//
//  main.c
//  queue
//
//  Created by chenyh on 2021/1/26.
//

#include <stdio.h>
#include "queue_list.h"

int main(int argc, const char * argv[]) {
   
    queueADT queue;
    int temp,i;
    queue = newQueue();
    for (i = 0; i < 16; i++) {
        inQueue(queue, i);
    }
    printf("The Length is %d\n",(int)getQueueLength(queue));
    while (!queueIsEmpty(queue)) {
        outQueue(queue, &temp);
        printf("%d",temp);
    }
    freeQueue(queue);
    return 0;
}
